on fs

chown bluetooth bluetooth /sys/module/bt_device/parameters/btpower_evt
chmod 0666 /sys/module/bt_device/parameters/btpower_evt

chown bluetooth bluetooth /sys/module/bt_device/parameters/btwake_evt
chmod 0666 /sys/module/bt_device/parameters/btwake_evt

service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
    -O/data/vendor/wifi/wpa/sockets -puse_p2p_group_interface=1 \
    -g@android:wpa_wlan0

    interface android.hardware.wifi.supplicant@1.0::ISupplicant default
    interface android.hardware.wifi.supplicant@1.1::ISupplicant default
    interface android.hardware.wifi.supplicant@1.2::ISupplicant default
    interface android.hardware.wifi.supplicant@1.3::ISupplicant default

    class main
    socket wpa_wlan0 dgram 660 wifi wifi
    disabled
    oneshot

service bcmdl /vendor/xbin/bcmdl -n /vendor/etc/wifi/43569/nvram_ap6269a2.nvm /vendor/etc/wifi/43569/fw_bcm43569a2_ag.bin.trx
		class main
    oneshot
    disabled

on property:vendor.bcm_wifi=bcm
   chown system wifi /sys/module/dhd/parameters/firmware_path
   chmod 0660 /sys/module/dhd/parameters/firmware_path
   chown system wifi /sys/module/bcmdhd/parameters/firmware_path
   chmod 0660 /sys/module/bcmdhd/parameters/firmware_path
   chown system wifi /sys/module/dhdpci/parameters/firmware_path
   chmod 0660 /sys/module/dhdpci/parameters/firmware_path
   setprop wifi.direct.interface p2p-dev-wlan0

on property:vendor.bcm_wifi=rtl
   setprop wifi.direct.interface p2p0

on property:vendor.bcm_wifi=mtk
   setprop wifi.direct.interface p2p0

on property:vendor.bcm_wifi=qca
   setprop wifi.direct.interface p2p0

on property:vendor.bcm_wifi=aml
   setprop wifi.direct.interface p2p0

on property:vendor.w1_wifi_type=ap
   write /sys/module/vlsicomm/parameters/con_mode 6

on property:vendor.w1_wifi_type=p2p
   write /sys/module/vlsicomm/parameters/con_mode 130

